package com.bsj.travel.constant;

/**
 * @author yinhao
 * @version 1.0
 * @description 权限相关常量
 * @date 2023/10/18
 */
public class SecurityConstants {

    /**
     * 令牌自定义标识
     */
    public static final String TOKEN_AUTH = "Authorization";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer";

    /**
     * 用户ID字段
     */
    public static final String USER_ID = "user_id";

    /**
     * 用户名字段
     */
    public static final String USER_NAME = "user_name";

    /**
     * 请求来源
     */
    public static final String FROM_SOURCE = "from-source";

    /**
     * 内部请求标识
     */
    public static final String INNER = "inner";
}
